package com.caiyi.financial.nirvana.sms.mapper;

import com.caiyi.financial.nirvana.sms.base.mapper.BaseMapper;
import com.caiyi.financial.nirvana.sms.entity.SmsRegisterUser;
import com.caiyi.financial.nirvana.sms.entity.SmsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SmsRegisterUserMapper extends BaseMapper<SmsRegisterUser> {

    @Select("select count(1) from sms_register_user where phone=#{phone}")
    int countPhone(@Param("phone") String phone);

}
